::este cmd se encarga de establcer el classpath de la portada
::debe ser llamado por todos los cmd de comandos
@echo off
color 4f
set errorlevel =
set CLASSPATH=
set CMDDIR=
set LIBDIR=
set CP_SENDMAIL=
echo %ACTUALDIR%
set CMDDIR=%ACTUALDIR%\cmd
set LIBDIR=%ACTUALDIR%\lib
for %%i in ("%ACTUALDIR%") do set ACTUALDIR=%%~fsi  
for %%i in ("%CMDDIR%") do set CMDDIR=%%~fsi  
for %%i in ("%LIBDIR%") do set LIBDIR=%%~fsi   
echo ==================================
echo =          Send Mail             =
echo =      common configuration      =
echo =      by    Otto Abreu          =
echo ==================================
echo.
echo.
FOR /f "tokens=*" %%G IN ('dir %LIBDIR% /b ') DO call :concat %LIBDIR% %%G;
FOR /f "tokens=*" %%G IN ('dir %CMDDIR% /b ') DO call :concat %CMDDIR% %%G;
FOR /f "tokens=*" %%G IN ('dir %ACTUALDIR% /b ') DO call :concat %ACTUALDIR% %%G;
echo %CP_SENDMAIL%
:concat
set CP_SENDMAIL=%CP_SENDMAIL%%1\%2;
goto :eof

